package com.brspace.qualitycontrol.controller.wps;

import com.alibaba.fastjson.JSONObject;
import com.brspace.qualitycontrol.base.Response;
import com.brspace.qualitycontrol.utils.BaseController;
import com.brspace.qualitycontrol.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * @author czw
 * 消息回调接口
 */
@RestController
@CrossOrigin
@RequestMapping("v1/3rd")
@Api(description = "wps-消息回调接口")
public class NotifyCallBackController extends BaseController {

    /**
     * 回调通知
     */
    @PostMapping("onnotify")
    @ApiOperation(value = "回调通知", notes = "回调通知")
    public ResponseEntity<Object> onNotify(
            @RequestBody JSONObject obj
    ) {
//        logger.info("回调通知param:{}", JSON.toJSONString(obj));
        // TODO
        // 返回数据暂不处理
        return Response.success();
    }

}
